Skip to content

Add "error_log_mode" setting - #7901

Closed
mikhainin wants to merge 2 commits into
php:masterfrom
mikhainin:error-log-mode
Closed

Add "error_log_mode" setting#7901
mikhainin wants to merge 2 commits into
php:masterfrom
mikhainin:error-log-mode

Conversation

@mikhainin

Copy link
Copy Markdown
Contributor

We created this patch some while ago (back in 2011 :D) and decided that it is probably worth sharing with the community. Sometimes we might want to set other permissions for the created logfile (e.g. 0664) but umask only allows us to reduce the permissions, not to increase.

I would appreciate it if you give your opinion and tell me if something might be changed

@bukka

bukka commented Jan 17, 2022

Copy link
Copy Markdown
Member

I think it makes sense. Would be good to add a test for this though. Should be quite simple. Something like setting this INIs with location in the test dir, log error and checking perms using fileperms...

@mikhainin

Copy link
Copy Markdown
Contributor Author

Thanks for your comment - I'll add tests

@mikhainin

Copy link
Copy Markdown
Contributor Author

ouch, I think I did a mess here. Shall I re-create pull-request?
Or there is a better way?

@Girgias

Girgias commented Jan 28, 2022

Copy link
Copy Markdown
Member

ouch, I think I did a mess here. Shall I re-create pull-request? Or there is a better way?

You should rebase on top of master instead of merging master into your branch.

@mikhainin

Copy link
Copy Markdown
Contributor Author

ouch, I think I did a mess here. Shall I re-create pull-request? Or there is a better way?

You should rebase on top of master instead of merging master into your branch.

I was sure that was exactly what I did :/

@Girgias

Girgias commented Jan 28, 2022

Copy link
Copy Markdown
Member

You should rebase on top of master instead of merging master into your branch.

I was sure that was exactly what I did :/

Doesn't seem like try:

git checkout master
git pull
git rebase master error-log-mode
git push -f

@mikhainin

Copy link
Copy Markdown
Contributor Author

Oh, much better. Thank you so much!

@mikhainin

Copy link
Copy Markdown
Contributor Author

We can probably remove the "Waiting on Author" label, I've added a test and am not sure what I can do more. Open for ideas/requirements, though

@ramsey ramsey added the Feature label May 27, 2022
@ramsey ramsey added this to the PHP 8.2 milestone May 27, 2022
@bukka

bukka commented Jul 18, 2022

Copy link
Copy Markdown
Member

Merged in ffdf25a . Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants